package com.phs.main.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class EmployeeVO extends UserInfoVO {
	@ExcelProperty("职位")
	private String position="";

	public EmployeeVO(UserRolePerm userRolePerm) {
		super(userRolePerm.getUsers());
		userRolePerm.getRoles().forEach(role -> this.position += role.getRoleDesc() + "、");
		this.position = this.position.substring(0, position.length() - 1);
	}
}
